package com.magic.ch11_7月真题.整除序列;

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        while(n > 0){
            System.out.print(n+ " ");
            n/=2;
        }
    }
}